package com.vladimirjosu.backgammon;

import java.util.ArrayList;

import android.content.Context;
import android.widget.LinearLayout;

import com.vladimirjosu.backgammon.Piece.Type;

public class Table extends LinearLayout {
	ArrayList<TablePoint> mPoints;

	public Table(Context context) {
		super(context);
		inflate(context, R.layout.game, this);
		loadPoints();
	}

	private void loadPoints() {
		mPoints = new ArrayList<TablePoint>();
		LinearLayout point = (LinearLayout) findViewById(R.id.table_point_1);
		TablePoint tablePoint = new TablePoint(getContext(), 1, 1, Type.BLACK, point);
		mPoints.add(tablePoint);
	}

}
